package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntityPlus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 次卡消费记录对象 web_user_card_time_log
 * 
 * @author wsliupan@126.com
 * @date 2021-06-27
 */
@ApiModel("次卡消费记录对象")
public class WebUserCardTimeLog extends BaseEntityPlus
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 次卡id */
    @Excel(name = "次卡id")
    @ApiModelProperty(value = "次卡id" )
    @NotNull(message = "次卡id 不能为空")
    private Long timeId;

    /** 卡名称 */
    @Excel(name = "次卡名称")
    @ApiModelProperty(value = "卡名称" )
    @NotNull(message = "卡名称 不能为空")
    private String timeName;

    /** 门店ID */
    @Excel(name = "门店ID")
    @ApiModelProperty(value = "门店ID" )
    @NotNull(message = "门店ID 不能为空")
    private Long deptId;

    @TableField(exist = false)
    @Excel(name = "门店")
    private String deptName;

    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID" )
    @NotNull(message = "用户ID 不能为空")
    private Long userId;

    @TableField(exist = false)
    @Excel(name = "用户昵称")
    private String nickname;

    @TableField(exist = false)
    @Excel(name = "用户姓名")
    private String realname;

    @Excel(name = "预约时间")
    private String orderTime;

    private Long serverOrderId;

    /** 剩余次数 */
    @Excel(name = "总金额")
    @ApiModelProperty(value = "总金额" )
    private BigDecimal money;

    /** 消费次数 */
    @Excel(name = "消费次数")
    @ApiModelProperty(value = "消费次数" )
    @NotNull(message = "消费次数 不能为空")
    private Long number;

    /** 剩余次数 */
    @Excel(name = "剩余次数")
    @ApiModelProperty(value = "剩余次数" )
    @NotNull(message = "剩余次数 不能为空")
    private Long residue;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTimeId(Long timeId) 
    {
        this.timeId = timeId;
    }

    public Long getTimeId() 
    {
        return timeId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setResidue(Long residue) 
    {
        this.residue = residue;
    }

    public Long getResidue() 
    {
        return residue;
    }

    public String getTimeName() {
        return timeName;
    }

    public void setTimeName(String timeName) {
        this.timeName = timeName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public Long getServerOrderId() {
        return serverOrderId;
    }

    public void setServerOrderId(Long serverOrderId) {
        this.serverOrderId = serverOrderId;
    }
}
